<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>New Classes</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration52.new-extensions.html">New Extensions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration52.global-constants.html">New Global Constants</a></div>
 <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration52.classes" class="section">
  <h2 class="title">New Classes</h2>
  <p class="para">
   The following classes were introduced in PHP 5.2.0:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <a href="ref.datetime.html" class="link">DateTime</a>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ref.datetime.html" class="link">DateTimeZone</a>
    </span>
   </li>

   <li class="listitem">
    <span class="simpara">
     RegexIterator - extends <a href="class.filteriterator.html" class="classname">FilterIterator</a>;
     implements <strong class="classname">Iterator</strong>, <strong class="classname">Traversable</strong>,
     <a href="class.outeriterator.html" class="classname">OuterIterator</a>
    </span>
    <span class="simpara">
     Constants:
    </span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong><code>RegexIterator::ALL_MATCHES</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RegexIterator::GET_MATCH</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RegexIterator::MATCH</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RegexIterator::REPLACE</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RegexIterator::SPLIT</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RegexIterator::USE_KEY</code></strong>
      </span>
     </li>
    </ul>
    <span class="simpara">
     Properties:
    </span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       public <span class="property">replacement</span>
      </span>
     </li>
    </ul>
    <span class="simpara">
     Methods:
    </span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       RegexIterator::__construct(Iterator it, string regex [, int mode [, int flags [, int preg_flags]]])
       - Create an <em>RegexIterator</em> from another iterator and a regular expression
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::accept()
       - Match (string)current() against regular expression
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::getFlags()
       - Returns current operation flags
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::getMode()
       - Returns current operation mode
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::getPregFlags()
       - Returns current PREG flags (if in use or <strong><code>NULL</code></strong>)
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::setFlags(int new_flags)
       - Set operation flags
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::setMode(int new_mode)
       - Set new operation mode
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RegexIterator::setPregFlags(int new_flags)
       - Set PREG flags
      </span>
     </li>
    </ul>
   </li>

   <li class="listitem">
    <span class="simpara">
     RecursiveRegexIterator
    </span>
    <span class="simpara">
     Constants:
    </span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       <strong><code>RecursiveRegexIterator::ALL_MATCHES</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RecursiveRegexIterator::GET_MATCH</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RecursiveRegexIterator::MATCH</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RecursiveRegexIterator::REPLACE</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RecursiveRegexIterator::SPLIT</code></strong>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       <strong><code>RecursiveRegexIterator::USE_KEY</code></strong>
      </span>
     </li>
    </ul>
    <span class="simpara">
     Methods:
    </span>
    <ul class="itemizedlist">
     <li class="listitem">
      <span class="simpara">
       RecursiveRegexIterator::__construct(RecursiveIterator it, string regex [, int mode [, int flags [, int preg_flags]]])
       - Create an <em>RecursiveRegexIterator</em> from another recursive iterator and
       a regular expression
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       RecursiveRegexIterator RecursiveRegexIterator::getChildren()
       - Return the inner iterator&#039;s children contained in a
       <em>RecursiveRegexIterator</em>
      </span>
     </li>
     <li class="listitem">
      <span class="simpara">
       bool RecursiveRegexIterator::hasChildren()
       - Check whether the inner iterator&#039;s current element has children
      </span>
     </li>
    </ul>
   </li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration52.new-extensions.html">New Extensions</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration52.global-constants.html">New Global Constants</a></div>
 <div class="up"><a href="migration52.html">Migrating from PHP 5.1.x to PHP 5.2.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
